package com.idea.ideapad.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class Idea extends Composite {

	private static IdeaUiBinder uiBinder = GWT.create(IdeaUiBinder.class);

	@UiField Image photo;
	@UiField Label bio;
	//@UiField Button innovatebutton;
	interface IdeaUiBinder extends UiBinder<Widget, Idea> {
	}

	public Idea(IdeaDO data) {
		super();
		initWidget(uiBinder.createAndBindUi(this));
		photo.setUrl(data.getImageURL());
		bio.setText(data.getBio());
		
	//	innovatebutton.setText("this is innovation");
	}

}
